// 按钮 -- 背景
const evn = 'https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/'
export enum  EnumBG {
    BU1="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/dy-but1.png",
    BU2="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/dy-but2.png",
    BU3="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/dy-but3.png",
    BU4="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/dy-but4.png",
    BU5="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/dy-but5.png",
    BU6="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/dy-but6.png",
    BU7="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/dy-but7.png",
    BU8="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/dy-but8.png",
    BU9="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/dy-but9.png",
    BG1="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/by-bg1.png",
    BG2="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/dy-bg2.png",

    BC1="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/birthday-cion1.png",
    BC2="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/birthday-icon2.png",
    BC3="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/birthday-icon3.png",
    BC4="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/birthday-icon4.png",
    BCG1="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/birthday-bg1.jpg",
    BCG2="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/birthday-bg2.jpg",
    BCG3="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/birthday-bg3.png",
    BCG4="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/birthday-bg4.png",
    BCG5="https://dmn000001-1301065476.cos.ap-guangzhou.myqcloud.com/sas/birthday-bg5.jpg",

    ABBG =evn +"ab-bg.png",
    GET = evn+ "get.png",
    HI = evn + "h-i.png",
    HP =evn + "homophonic.png",
    HORN =evn + "horn.gif",
    HR = evn + "h-r.png",
    HRBG = evn + "hr-bg.png",
    INDEXA = evn + "index-a.png",
    INDEXBG = evn + "index-bg.png",
    INDEXABMI = evn + "index-bmi.png",
    INDEXF = evn + "index-f.jpg",
    INDEXH = evn + "index-h.png",
    INDEXMONEY = evn + "index-money.png",
    INDEXN = evn + "index-n.png",
    MONEYLOGO  = evn + "money-logo.png",
    MONEYRESULT = evn + "money-result.png",
    MONEYSTATUS  = evn + "money-status.png",
    VW  = evn + "vw.png",


}
// 敏感词数组
const sensitiveWordsArray = ['你妹的','你大爷','傻',"sb","傻逼","你妈死了","尼玛","毒品","海洛因","冰毒","大麻","摇头丸","自杀","海洛因","去死","裸体","做爱","狗比","狗逼"];
/**
     * 检测方法
     * @param {String} str 检测的字符
     * @return {Boolean} 是否存在敏感词
     * */ 
export const filtions = (str:any) => {
    for (let i = 0; i < sensitiveWordsArray.length; i++) {
        for (let j = 0; j <= str.length - sensitiveWordsArray[i].length; j++) {
            //根据敏感字符个数截取str的字符进行判断
            if (sensitiveWordsArray[i] == str.slice(j, j + sensitiveWordsArray[i].length)) {
                return true
            }
        }
    }
   return false
}
